package com.sali.b_design_pattern.e_template_pattern.lesson_entity_wrapper.optimize;

import com.sali.b_design_pattern.e_template_pattern.lesson_entity_wrapper.pojo.User02;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: sali
 * @date: 2024/5/30 23:01.
 * @version: 1.0
 */
@Component
public class User02Template extends UserTemplate<User02> {

    private final static String query02 = "bb";

    @Override
    protected User02 mapResult(String result) {
        return User02.builder().name02(result + query02).age02(11).build();
    }

    @Override
    protected String getQuerySql() {
        return query02;
    }
}
